package com.example.demo.redis;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * @desc:
 * @author: fuxiang
 * @date: 2018/6/7 21:04
 */
public class TetsMain {
    @Autowired
    RedisTemplate redisTemplate;
    public static void main(String[] args) {

    }
    public  void test(){
        redisTemplate.opsForValue().set("ceshi","ceshiyixia");
    }
}
